import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:flutter_saixiaoli/pages/index/index.dart';
import 'package:flutter_saixiaoli/routes.dart';

class Application extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final router = FluroRouter();
    Routes.configureRoutes(router);

    return MaterialApp(
      theme: ThemeData(
          primaryColor: Colors.white, scaffoldBackgroundColor: Colors.white),
      home: Index(),
      onGenerateRoute: router.generator,
    );
  }
}
